package com.gxgy.entity;


import org.springframework.lang.NonNull;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * @description: 用户表
 * @author: Qin Fengang
 * @date: 2021-11-11
 */
@TableName("user")
public class User {
	
	//用户表编号
	public final static String ID = "id";
	@TableId
	private String id;
	
	//用户昵称
	public final static String NAME = "name";
	@TableField("name")
	private String name;

	//用户名
	public final static String USERNAME = "username";
	@TableField("username")
	private String username;
	
	// 用户密码
	public final static String PASSWORD = "password";
	@TableField("password")
	private String password;
	
	//用户性别
	public final static String SEX = "sex";
	@TableField("sex")
	private String sex;
	
	//角色id
	public final static String R_ID = "r_id";
	@TableField("r_id")
	private String rId;

	//创建时间
	public final static String CREATE_TIME = "create_time";
	@TableField("create_time")
	private String createTime;
	
	
	public User() {
		super();
	}


	public User(String id, String name, String username, String password, String sex, String rId, String createTime) {
		super();
		this.id = id;
		this.name = name;
		this.username = username;
		this.password = password;
		this.sex = sex;
		this.rId = rId;
		this.createTime = createTime;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	public String getrId() {
		return rId;
	}


	public void setrId(String rId) {
		this.rId = rId;
	}


	public String getCreateTime() {
		return createTime;
	}


	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", username=" + username + ", password=" + password + ", sex="
				+ sex + ", rId=" + rId + ", createTime=" + createTime + "]";
	}



}
